package com.example.sunflowers.adapters

import android.view.View
import androidx.databinding.BindingAdapter

/**
 *
 * @Author： LJH
 * @Time： 2024/1/27
 * @description：
 */
@BindingAdapter("isGone")
fun bindIsGone(view: View,isGone: Boolean){
    view.visibility = if (isGone){
        View.GONE
    } else {
        View.VISIBLE
    }
}